build-id: fix minor quirks
authorJan Beulich <jbeulich@suse.com>
Mon, 15 Aug 2016 08:41:02 +0000 (10:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 15 Aug 2016 08:41:02 +0000 (10:41 +0200)
commit0159ded211fa4fbb9934eb222148442921789816
tree20b77df25c06aad1666a40e804a2a70aac2ea47d
parenta55ad65d3a30d5b3a026a7481ce05f28065920f0
build-id: fix minor quirks

The initial size check in xen_build_id_check() came too late (after the
first access to the structure), but was mostly redundant with checks
done in all callers; convert it to a properly placed ASSERT(). The
"mostly" part being addressed too: xen_build_init() was off by one.

And then there was a stray semicolon.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/version.c